<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreatGameNcdhOrderDetailLogTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('game_ncdh_order_detail_log', function (Blueprint $table) {
            $table->increments('id')->comment('农场大亨下单详情表');
            $table->integer('user_id')->unsigned()->comment('用户ID');
            $table->integer('type')->unsigned()->comment('投注种类');
            $table->integer('gold')->default(0)->comment('下单金额');
            $table->integer('is_win')->default(0)->index()->comment('是否中奖');
            $table->integer('issue')->comment('期号');
            $table->integer('order_id')->default(0)->unsigned()->comment('下单id');
            $table->integer('add_time')->default(0)->unsigned()->comment('创建时间');
            $table->integer('update_time')->default(0)->unsigned()->comment('更新时间');
            $table->integer('unpay')->default(0)->unsigned()->index()->comment('撤销购买，1撤销 0正常');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
